$OpenBSD: patch-plugins_Makefile_am,v 1.3 2017/04/22 12:09:05 ajacoutot Exp $

http://permalink.gmane.org/gmane.comp.gnome.desktop/51950
https://bugzilla.gnome.org/show_bug.cgi?id=770758#c3
https://bugzilla.gnome.org/show_bug.cgi?id=766329
https://bugzilla.gnome.org/show_bug.cgi?id=772736 (systemd --user)

--- plugins/Makefile.am.orig	Sat Oct  8 16:08:22 2016
+++ plugins/Makefile.am	Sat Apr 22 13:13:01 2017
@@ -14,7 +14,6 @@ enabled_plugins =	\
 	mouse		\
 	orientation	\
 	screensaver-proxy \
-	sharing		\
 	sound		\
 	xrandr		\
 	xsettings	\
@@ -44,6 +43,12 @@ if BUILD_RFKILL
 enabled_plugins += rfkill
 else
 disabled_plugins += rfkill
+endif
+
+if BUILD_SHARING
+enabled_plugins += sharing
+else
+disabled_plugins += sharing
 endif
 
 SUBDIRS = common $(enabled_plugins)
